import 'package:flutter/cupertino.dart';

class FFController {}

Future<void> globalAnimationStatus({
  required AnimationController? controller,
  Function()? onEnd,
  Function()? onStart,
}) async {
  if (controller?.status == AnimationStatus.completed ||
      controller?.status == AnimationStatus.forward) {
    if (onEnd != null) await onEnd();
  } else {
    if (onStart != null) await onStart();
  }
}
